package org.example.sboot.service.impl;

import lombok.extern.slf4j.Slf4j;
import org.example.sboot.entity.Counlist;
import org.example.sboot.entity.CounlistExample;
import org.example.sboot.mapper.CounlistMapper;
import org.example.sboot.service.CounlistService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author jia
 * @date 2021/6/10
 */
@Slf4j
@Service
public class CounlistServiceImpl implements CounlistService {
    @Autowired
    private CounlistMapper mapper;

    @Override
    public int countByExample(CounlistExample example) {
        return 0;
    }

    @Override
    public int deleteByExample(CounlistExample example) {
        return 0;
    }

    @Override
    public int insert(Counlist record) {
        return 0;
    }

    @Override
    public int insertSelective(Counlist record) {
        return 0;
    }

    @Override
    public int allcount() {
        return mapper.count();
    }

    @Override
    public List<Counlist> selectByExample(Counlist counlist) {
        CounlistExample example=new CounlistExample();

        CounlistExample.Criteria criteria = example.createCriteria();
        criteria.andExtra1IsNotNull();

        return mapper.selectByExample(example);
    }
}
